package data.missions;

import data.tileables.Controllable;
import data.tileables.HarvestStructure;

public class UnassignAll extends Mission {
	private HarvestStructure harv;
	public UnassignAll(HarvestStructure h)
	{
		harv = h;
		displayName = "Unassign All";
	}
	public int execute()
	{
		int workersFreed = 0;
		workersFreed = harv.getHarvestList().unassignAllWorkers();
		harv.incUnassignedWorkers(workersFreed);
		System.out.println("workers freed = " + workersFreed);
		return 1;
	}

}
